<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String doctorAdviceStandingInfoJson= (String)request.getAttribute("doctorAdviceStandingInfoJson");
%>
<link rel="stylesheet" href="${basePath}assets/bootstrap/css/bootstrap.css"/>
<link rel="stylesheet" href="${basePath}assets/jquery-ui/jquery-ui.css"/>
<link rel="stylesheet" href="${basePath}assets/css/basic.css"/>
<link rel="stylesheet" href="${basePath}assets/css/medical_record/home_page.css"/>
<script type="text/javascript" src="${basePath}assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}assets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${basePath}assets/js/medical_record/edit_doctor_advice_standing_info.js"></script>
<form action="${basePath }medical_record/edit_home_page_doctor_advice_standing" method="post" style="width: 100%">
	<input type="hidden" name="visitGuid" value="${visitGuid }">
	<input type="hidden" id="doctorAdviceRecordCount" value="0"/>
	
	
	<table style="width:100%;" cellspacing="0" cellpadding="0">
		<tbody>
			<tr>
				<td align="left" colspan="6" class="dark">
					<div style="float:right">
						<input type="button" value="删除" class="btn"
					onclick="deleteDoctorAdviceRecord()">
						<input type="button" value="新增" onclick="addDoctorAdviceRecord()"
					class="btn">
						<input type="submit" value="保存" class="btn">&nbsp;
					</div></td>
			</tr>
		</tbody>
	</table>
	<div class="bg_danlanColor">
		<ul class="bg_danlanColor margin0 clearfix" id="doctor_advice_ul">
			
		</ul>
	</div>
	<div class="content" id="doctorAdviceRecords" >
		
	</div>
	
</form>
<div hidden="true">
	<ul id="template_doctor_advice_ul">
		<li data-index="0">记录1</li>
	</ul>
	
	<div id="templateDoctorAdviceRecord" style="height:722px; overflow-y:auto;" >
		<table style="width:100%;" cellspacing="0" cellpadding="0">
			<thead>
				<tr>
					<td align="left" class="tdLabel_7">姓名</td>
					<td class="tdLabel_8">
						<input type="text" name="doctorAdviceStandingRecords[0].patientName">
					</td>
					<td align="left" class="tdLabel_7">科室</td>
					<td class="tdLabel_8">
						<input type="text" name="doctorAdviceStandingRecords[0].deptName">
					</td>
					
					<td align="left" class="tdLabel_7">识别码</td>
					<td class="tdLabel_8">
						<input type="text" name="doctorAdviceStandingRecords[0].mrId">
					</td>
	
					<!-- <td align="left" class="tdLabel_7">床号</td>
					<td class="tdLabel_8">
						<input type="text" name="doctorAdviceStandingRecords[0].bedName">
					</td> -->
	
				</tr>
				<!-- <tr>
					<td align="left" class="tdLabel_7">ID号</td>
					<td class="tdLabel_8">
						<input type="text" name="doctorAdviceStandingRecords[0].patientId">
					</td>
					<td align="left" class="tdLabel_7">识别码</td>
					<td class="tdLabel_8">
						<input type="text" name="doctorAdviceStandingRecords[0].mrId">
					</td>
					
				</tr> -->
			</tbody>
		</table>
		<input type="hidden" id="doctorAdviceItemCount" value="0"/>
		<table style="width:100%;" cellspacing="0" cellpadding="0" id="doctorAdviceItems">
			<thead>
				<tr>
					<td colspan="8" class="tdLabel_7">
	
						<div style="float:right">
							<span class="red" id="tsxx" style="display:none"> </span> <input
								type="button" value="新增" onclick="addDoctorAdviceItem()"
								class="btn">
						</div></td>
				</tr>
				<tr>
					
					<td class="tdLabel_4" width="17%">开始时间</td>
					<td class="tdLabel_4" width="30%">医嘱内容</td>
					<td class="tdLabel_4" width="8%">医师签名</td>
					<td class="tdLabel_4" width="8%">护士签名</td>
					<td class="tdLabel_4" width="17%">结束时间</td>
	<!-- 				<td class="tdLabel_4" width="8%">医师签名</td>
					<td class="tdLabel_4" width="8%">护士签名</td> -->
					<td class="tdLabel_4" width="4%">操作</td>
				</tr>
			</thead>
			<tbody>
				
			</tbody>
			<!-- <tfoot>
				<tr>
					<td align="left" class="tdLabel_8" colspan="8"></td>
				</tr>
				<tr>
					<td align="left" class="tdLabel_8" colspan="8"></td>
				</tr>
			</tfoot> -->
		</table>
	</div>

	<table>
		<tr id="templateDoctorAdviceItemTr">
			
			<td class="tdLabel_8">
				<input type="text" name="doctorAdviceStandingRecords[0].doctorAdviceStandingItems[0].doctorAdviceStartDateTime" class="input_box" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
			</td>
			<td class="tdLabel_8">
				<input type="text" name="doctorAdviceStandingRecords[0].doctorAdviceStandingItems[0].doctorAdviceContent" class="input_box">
			</td>
			<td class="tdLabel_8">
				<input type="text" name="doctorAdviceStandingRecords[0].doctorAdviceStandingItems[0].doctorAdviceStartDoctorName" class="input_box">
			</td>
			<td class="tdLabel_8">
				<input type="text" name="doctorAdviceStandingRecords[0].doctorAdviceStandingItems[0].doctorAdviceStartNurseName" class="input_box">
			</td>
			<td class="tdLabel_8">
				<input type="text" name="doctorAdviceStandingRecords[0].doctorAdviceStandingItems[0].doctorAdviceEndDateTime" class="input_box" onFocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
			</td>
<!-- 			<td class="tdLabel_8">
				<input type="text" name="doctorAdviceStandingRecords[0].doctorAdviceStandingItems[0].doctorAdviceEndDoctorName" class="input_box">
			</td>
			<td class="tdLabel_8">
				<input type="text" name="doctorAdviceStandingRecords[0].doctorAdviceStandingItems[0].doctorAdviceEndNurseName" class="input_box">
			</td> -->
			<td class="tdLabel_8">
				<a class="btn" style="padding:4px; margin:0 auto;" onclick="deleteDoctorAdviceItem(this)">删除</a>
			</td>
		</tr>
	</table>
</div>
<script>
	$(function(){
		var doctorAdviceStandingInfoJson= <%=doctorAdviceStandingInfoJson%>;
		 
		initPage(doctorAdviceStandingInfoJson);
	})
</script>